class {
    onInput(input) {
        this.state = {
            name: undefined
        }
    }
}

<div>
    Hello ${state.name || ''}!
</div>